package cn.gson.springboot.model.mapper;

import java.util.List; 

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;

import cn.gson.springboot.model.pojos.DrugsYk;

@Mapper
public interface DrugsYkMapper {
	//查询所有药品
	public JSONArray findAll();
	//采购查询所有药品
	public JSONArray drugList();
	//入库选择药品
	public JSONArray findyaopin();
	//住院药品查询
	public JSONArray findDrug_ljw(
				@Param("drug_types_id")Integer tid,
				@Param("drug_name")String name); 
	
	//根据供应商查询药品
	public  JSONArray findbyidgys(@Param("factoryId")Integer factoryId);
	
	
	//根据药品名称、药品规格、供应商名称查询药品
	public JSONArray mcgggys(@Param("drug_name")String drug_name,
			@Param("drug_specifications")String drug_specifications,
			@Param("factory_id")Integer factory_id);
	
}  
 